Skip to content

feat(spec)!: PROTOCOL_VERSION 18 → 19, and every current-protocol handshake reads '^19' - #37314

Draft
objectstack-fleet[bot] wants to merge 12 commits into
mainfrom
claude/issue-37229-protocol-version-19
Draft

objectstack-fleet[bot] wants to merge 12 commits into
mainfrom
claude/issue-37229-protocol-version-19

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Fixes #37229
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: none in this PR — the three skills/** files that declare '^18' (skills/objectstack-platform/SKILL.md, skills/objectstack-platform/evals/config-plugins-ops.json, skills/objectstack-upgrade/SKILL.md) move in the sibling Tier H PR #37298 (PR 2 of #37229), which lands with this one or right after it.

维护者速读

  • 协议版本从 18 升到 19:仓库里每个示例应用、连接器应用和文档示例都改为声明 19,新建项目模板在出预发布版时自动改成 19;只有装 19 预发布版的人会碰到。
  • 属于「19.0.0 大版本」路线(你选的方案「A」第 2 项);它解开 19.0.0-next 的版本 PR:出版本的流水线不接受顺手改协议版本,所以由这一单先改好。
  • 装了 19 预发布版、但应用仍声明 18 的人,启动时会被拒绝并提示改成 19(有一条命令可自动改);18.x 正式版用户不受影响;撤回即还原本单。
  • 要你做的:「进入预发布模式」那一单已合并;本单是大版本变更,请你亲自把关合并(另一单 docs(skills): the platform and upgrade skills teach engines.protocol '^19', the major the 19.x boot handshake accepts #37298 改三个技能文件,跟它一起或紧随其后合并)。

What changes

On the shape of the v18 move (#22215, commit 4e9fe9f), minus skills/**.

  • packages/spec/src/kernel/protocol-version.ts: PROTOCOL_VERSION = '19.0.0'. The docblock names protocol 19 as the pre-mode lockstep exception (ruling records 6049734955 and 7153441862).
  • Handshakes: 84 sites in 66 files move engines.protocol from '^18' to '^19'. Each is a manifest that stands for "an app on the current protocol", and none of them asserts on the range.
Directory Files Sites
examples/ (crm, showcase, todo, multi-package ×2) 5 5
packages/apps/connector-{docusign,github,stripe} 3 3
packages/cli (tests) 40 56
packages/qa (7 dogfood tests, the sql-perf bench app, the scenarios exporter test) 9 9
packages/lint, packages/spec, packages/metadata (tests) 4 5
packages/mcp/README.md 1 2
content/docs (cli, your-first-project, upgrading) 3 3
docs/qa/scenarios/builds/travel_expense.json 1 1
  • docs/qa/platform-checklist/areas/cli.json: one prose fact, "the stock showcase declares '^18'", now reads '^19'.
  • The protocol 19 migration step (ADR-0087). packages/spec/src/migrations/registry.ts.template opens step19, with no conversions yet. Its first semantic entry, entries/semantic/19.protocol-18-range-refused.ts, is the refusal this PR causes, with the prescription. The upgrade guide now generates three hop sections (17, 18, 19). See "Why a step-19 entry" below.
  • Two fixtures pay a dynamic load at module top (validate-flow-region-shape.test.ts, plugin-artifact-packages-attribution.test.ts). check:test-source-alias judges every test file a diff edits, and both edits here are the range literal. The gate prescribes exactly these imports.
  • .changeset/37229-protocol-19.md: "@objectstack/spec": minor, the two declaration lines, a BREAKING note with the FROM → TO and the command, and registered protocol-18-range-refused.
  • Carried from chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads #37230's L1, now that it is on main:
    • N1 — DELIBERATE CORRECTION of an existing changeset. .changeset/37223-v19-line-opens.md now reads: "The first change graded major is @object-ui/i18n's retirement of the translation keys 18.6.0 shipped and no code reads any more; a second major in the same fixed group still gives one 19.0.0." It used to say "The first is …". This PR's protocol move, a breaking change graded minor, makes that untrue. No other sentence of that note moves.
    • N3 — ui/packages/i18n/scripts/released-keys-removed.mjs refuses an argument it does not know (exit 2, naming it), and prints the tag's commit: ^{commit} peels the annotated tag. Measured: the tag @object-ui/i18n@18.6.0 is a tag object 0dbef86ce3, and the script now prints its commit 958ee03594. The script is not in the package's files[], so it publishes nothing and needs no changeset.

Judgments: every '^18' left in place, with its reason

Site Reason
skills/** (3 files) Governed Tier H; the sibling PR #37298.
packages/create-objectstack/src/templates/blank/objectstack.config.ts:38 The version pass stamps it with the template's @objectstack/* versions, and template-consistency.test.ts holds it equal to the scaffolder major (create-objectstack is 18.6.0). Measured: moved to '^19' now, that test goes red; the version-pass rehearsal below stamps it '^19'. Same judgment as #22215.
packages/cli/src/utils/protocol-version-gap.test.ts:82 Paired with an explicit installed '17.2.0': "a newer major is silent". The subject is the pairing, not the current protocol.
packages/metadata-core/src/artifact-forward-conversion*.test.ts, protocol-handshake.test.ts The subject is the artifact's floor against an injected runtime label (the v18 prerelease major-step window), or a range/major pair. No handshake against PROTOCOL_VERSION runs.
packages/metadata/src/plugin-artifact-forward-conversion-{major-step,package-body}.test.ts The same age subject at the metadata door, which runs no handshake.
content/docs/releases/**, docs/adr/**, **/CHANGELOG.md, .github/workflows/release.yml (comment), script comments Release-owned, governed or historical prose.
ui/** tests, packages/runtime/src/domains/packages-ensure-customization.test.ts, scripts/docs-audit/affected-docs.mjs Not a protocol handshake (requiredRange of a later refusal, a package-dependency range, a React peer range).

Moved to '>=18.0.0' (5 sites, commit e05fdf6f): packages/runtime/src/standalone-stack-option-b-forward-conversion.test.ts. It boots through the load seam, which refuses '^18' at protocol 19. Measured: ProtocolIncompatibleError: package 'com.test.ob.core' targets protocol ^18 … Run: objectstack migrate meta --from 18, 3 cases. Its subject is the conversion window, which opens on the floor. '>=18.0.0' keeps the floor (18.0.0, as parseRangeFloor reads ^18) and admits 19. This is the same move as #22215's two runtime fixtures (>=17.1.0).

Why a step-19 entry (the ADR-0087 disposition)

Metadata-protocol: is judged from content. A 19 runtime refuses an authored value, engines.protocol: '^18', that 18 admitted. That is narrowed, and the Clause-② arm is narrowing, as in #22215. On a declared narrowed, check:adr-0087-registration refuses not-required (no-migration-prescription) outright and asks for a registered entry. Measured: "not-required (no-migration-prescription) is refused on a changeset that declares Metadata-protocol: narrowed … fix: register an entry under packages/spec/src/migrations/entries/semantic/". No entry at the merge base covers the refusal, so this PR opens step 19 with one entry, and the upgrade guide carries the prescription.

Acceptance notes

Verification

Two-minute check: node scripts/check-changeset-no-major.mjs --base origin/main prints ✓ Protocol lockstep: PROTOCOL_VERSION major 19, @objectstack/spec@18.6.0 — the one exception, evidenced: pre mode (tag next) and a pending major for @objectstack/spec (.changeset/37223-v19-line-opens.md). and exits 0.

Read first:

  1. .changeset/37229-protocol-19.md and packages/spec/src/migrations/entries/semantic/19.protocol-18-range-refused.ts: what an upgrading author is told.
  2. packages/spec/src/migrations/registry.ts.template, the new step19: the ledger's protocol 19 step opens here.
  3. The Judgments table: every '^18' left in place.
Readings (the dev's, on 9da4c1d plus the fixture fix, through the verify lock)
  • Handshake, from the built @objectstack/metadata-core on protocol 19: '^18' → incompatible OS_PROTOCOL_INCOMPATIBLE … Run: objectstack migrate meta --from 18; '^19' → ok.
  • Prescription, with the built CLI on a '^18' copy of examples/app-todo: os migrate meta --from 18 lists the step-19 entry, and --write rewrites the range to '^19'.
  • Template control leg: moving the blank template to '^19' now turns template-consistency.test.ts red (expected 19 to be 18).
  • release.yml version-pass rehearsal. The version-pr Render and Validate blocks were extracted verbatim and run in a throwaway clone:
  • Tests:
    • dogfood full battery: Test Files 487 passed | 3 skipped (490), Tests 4128 passed | 68 skipped (4196), VERDICT command-exit 0.
    • cli: 677 files, 8441 tests passed.
    • runtime: 647 files, 11978 passed | 25 skipped. The option-B file fails 3 cases at 9da4c1d and passes 6/6 at e05fdf6.
    • metadata, metadata-core, lint, mcp, the spec kernel/migrations/conversions suites, create-objectstack, scenarios and the example tests: all green.
    • validate exits 0 for 4 examples and 3 connector apps.
  • Guards:
    • check-changeset-no-major --base origin/main exits 0.
    • check:adr-0087-registration exits 0 with registered protocol-18-range-refused. Control: no-migration-prescription exits 1.
    • check:upgrade-guide: protocol 19.0.0, 3 major hop section(s).
    • dispatch-gates --commands derived 124 families: 120 exit 0, and 4 were NOT MEASURED because of prerequisite refusals (teardown-shape self-test, skill-examples, dual-build-cjs-loads, type-check-debt). CI runs those four.

Provenance

Opened by seat repo:objectstack#4 on the maintainer's authorization in the seat session (「#37229 的两个 PR 开 PR 时被拦了:放行」). The dev session (session_01QSeKYnLptCbfzwtkTrDG3j, zone a4-S) had three writes refused by its permission check, and none was retried: its relay pr_create, the hand-off of the payload to the seat, and the push of the runtime fixture fix. The seat read the prepared body from that session's final message. The fixture fix was then re-applied and pushed as e05fdf6f (fast-forward, five sites in one test file) by a seat-dispatched dev, on the maintainer's authorization 「#37229 夹具修复推送放行」. Branch claude/issue-37229-protocol-version-19 @ e05fdf6f.


🤖 Generated with Claude Code

https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ

@github-actions github-actions Bot added documentation Improvements or additions to documentation protocol:system tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 6 package(s): @objectstack/connector-app-docusign, @objectstack/connector-app-github, @objectstack/connector-app-stripe, @objectstack/mcp, @objectstack/dogfood, @objectstack/spec, touching 8 documentable anchor(s). ⚠️ 6 changed file(s) yielded no anchor (packages/apps/connector-docusign/objectstack.config.ts, packages/apps/connector-github/objectstack.config.ts, packages/apps/connector-stripe/objectstack.config.ts, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

⛔ 5 release-owned page(s) name something this change touched. These are read-only:

  • content/docs/releases/v12.mdx (via PROTOCOL_VERSION (symbol, a top-level const object))
  • content/docs/releases/v13.mdx (via PROTOCOL_VERSION (symbol, a top-level const object))
  • content/docs/releases/v14.mdx (via PROTOCOL_VERSION (symbol, a top-level const object))
  • content/docs/releases/v18/18-0.mdx (via PROTOCOL_VERSION (symbol, a top-level const object))
  • content/docs/releases/v18/index.mdx (via PROTOCOL_VERSION (symbol, a top-level const object))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 6 changed file(s) yielded no anchor (packages/apps/connector-docusign/objectstack.config.ts, packages/apps/connector-github/objectstack.config.ts, packages/apps/connector-stripe/objectstack.config.ts, …) — pages documenting those are invisible to this run
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 182 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json c2f8bff93f6484c43b7667955a0a3541c1454440 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 09d601ca4abbce1f7842cd397b464b480084917e — the merge of head 43133e8ce5093a29ef8587213c3d2266651731fc into base c2f8bff93f6484c43b7667955a0a3541c1454440, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 09d601ca4abbce1f7842cd397b464b480084917e && git checkout 09d601ca4abbce1f7842cd397b464b480084917e
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin c2f8bff93f6484c43b7667955a0a3541c1454440 43133e8ce5093a29ef8587213c3d2266651731fc && git checkout -B drift-repro c2f8bff93f6484c43b7667955a0a3541c1454440 && git merge --no-ff 43133e8ce5093a29ef8587213c3d2266651731fc

node scripts/docs-audit/affected-docs.mjs --json c2f8bff93f6484c43b7667955a0a3541c1454440

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs c2f8bff93f6484c43b7667955a0a3541c1454440 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

… protocol 19

At protocol 19 the load seam refuses an engines.protocol of '^18', so the
three boot suites failed in beforeAll with ProtocolIncompatibleError. The
file's subject is the conversion window, which opens on the 18.0.0 floor:
'>=18.0.0' keeps that floor and admits 19, the same move the runtime
fixtures made for the protocol-18 bump ('>=17.1.0').

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head e05fdf6f1895c288104746e9d54416eb3cdb6b45 · 2026-11-25T17:48Z

PR #37314, PR 1 of 2 for #37229: PROTOCOL_VERSION 18 → 19, 84 handshakes to '^19', the step-19 ADR-0087 entry. Read against GitHub and the tree at this head, not against the report. The direction is right and the dev's three questions are answered as built. CI is red at this head on a test the constant move breaks. Two must-fix and two should-fix are open.

Checklist

  • Shape. Open, draft, base main, first line Fixes #37229, no closing keyword on another card. Title carries !. Author objectstack-fleet[bot], opened by relay.
  • Diff, read whole. 74 files, +206 / −95 against merge base dfdebfadd5 (8 commits). 84 engines.protocol sites in 66 files move '^18' → '^19', counted from the diff; the body's per-directory table matches. The other hunks are the constant and its docblock, step19 in registry.ts.template, the new semantic entry, two module-top imports in edited fixtures, the option-B fixture, the cli.json checklist fact, the two changesets and the i18n script.
  • Premise. chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads #37230 merged (2026-11-25T12:51Z, 5cf9941d3f); .changeset/pre.json reads mode: pre, tag next. main added no '^18' handshake between the merge base and dbc1765a24.
  • Card's Done-when. protocol-version.test.ts 3/3 at this head; the guard output is quoted in the body and reproduced below.
  • Tier. check-governed-merges.mjs --pr 37314: not governed, 301 changed lines. record-recognisers.mjs --template on the 74 paths: the schema face, CONTRACT_REVIEW_TIER. The declared narrowing sends it to the maintainer.
  • Declarations. Body and changeset both read Clause-②: yes (narrowing) and Metadata-protocol: narrowed. Skills-docs: is present; the three skill files move in docs(skills): the platform and upgrade skills teach engines.protocol '^19', the major the 19.x boot handshake accepts #37298.

Gates

  • Check-runs at this head (all complete, read 2026-11-25T17:46Z). 78 runs: 59 success, 13 expected skip, 0 pending, 6 not green. Test Core (2/10) and its roll-up Test Core are failure: M1. Check Changeset is failure twice (two runs of this head) and red by design, next bullet. One Check Changeset and one PR-body guards run are cancelled, superseded by later runs of the same head; the later PR-body guards run is green. Lint, type check, Test UI 16/16 and the other nine Test Core shards are green.
  • Check Changeset is red by design. It refuses the edit to .changeset/37223-v19-line-opens.md, a changeset on the merge base (DELIBERATE CORRECTION). Its later steps ran and are green in the same job: check-adr-0087-registration (registered protocol-18-range-refused (new here)), This diff introduces no major bump, the LEVEL AXIS line for yes (narrowing) + narrowed, and the protocol lockstep line. The correction is confirmed in the record (record-37314.md, ②), sentence quoted before and after. A PR comment naming the gate and the reason is still owed before any landing.
  • Run here, read-only, in a throwaway worktree at this head (since removed).
    • node scripts/check-changeset-no-major.mjs --base origin/main: exit 0. ✓ Protocol lockstep: PROTOCOL_VERSION major 19, @objectstack/spec@18.6.0 — the one exception, evidenced: pre mode (tag next) and a pending major for @objectstack/spec (.changeset/37223-v19-line-opens.md).
    • check:adr-0087-registration: self-test exit 0 (819 assertions), then exit 0, registered protocol-18-range-refused (new here: protocol-18-range-refused).
    • Option-B test, built dist reads PROTOCOL_VERSION = "19.0.0": Test Files 1 passed (1) · Tests 6 passed (6), lock VERDICT command-exit 0. Positive control, the five sites put back to '^18': 1 failed, 3 passed | 3 skipped, the three boot suites refused with targets protocol ^18 (engines.protocol) but this runtime is protocol 19.0.0.
    • Kept sites: metadata-core 3 files 513/513, metadata 3 files 19/19, template-consistency.test.ts 41/41, protocol-version-gap.test.ts 16/16.
  • git merge-tree against origin/main dbc1765a24: clean. The two PRs share no path.
  • K. landing-k.mjs --pr 37314: CAN'T ANSWER, exit 3: no completed run on this PR's commits has a green Test Core. Not a 0. The red run printed its affected-set base as fbb62e1cca, one first-parent commit behind origin/main dbc1765a24. Read K again on the reworked head.

The dev's open questions, as seat L1 judgments

Judgments table against the tree

git grep at this head: 180 lines hold ^18 outside CHANGELOG.md, content/docs/releases/**, docs/adr/** and the lockfile. Each was read. The table covers all but the sites in S2. Not in the table by name, and correctly left: retired specVersion: '^18.0.0' fixtures, tedious@^18.0.0, React peer ranges, 10^18, scripts/sync-template-versions.mjs comments, and the docblocks in packages/cli/src/commands/migrate/meta.ts and packages/metadata-core/src/protocol-handshake.ts; none is a handshake against the current protocol.

Changesets and docs, sentence by sentence

  • .changeset/37229-protocol-19.md: every sentence holds except the --write claim for multi-package manifests (S1).
  • .changeset/37223-v19-line-opens.md: the one rewritten sentence is true (record ②). See N3 for a neighbour.
  • content/docs/deployment/cli.mdx, content/docs/getting-started/your-first-project.mdx, content/docs/upgrading.mdx: one literal each, '^19'. True for the tree; see N4 for npm latest.

Findings

  • M1 (must-fix) — Test Core (2/10) is red at this head, and this PR causes it. packages/spec/src/shared/retired-key-removal-version.pin.test.ts fails three cases: object-grid-single-click-edit-removed, field-inline-edit-boolean-removed, view-column-state-removed. First error: "object-grid.singleClickEdit (parse): retiredAfter 18.6.0 (newest published stable 18.6.0) derives @objectstack/spec 19, but the prescription names 18 — … was removed in @objectstack/spec 18.7.0". Reproduced here at the head itself, without main merged in: Tests 3 failed | 62 passed (65), lock VERDICT command-exit 1. The same shard is green on main fbb62e1cca. The pin derives the removing release's major from PROTOCOL_MAJOR; at 19 the retirements stamped retiredAfter 18.6.0 must name the 19 line, and their prescriptions still say 18.7.0, a release the v19 line never cuts. The three entries were on the merge base, so the dev's run would have shown it; the body's test list names "the spec kernel/migrations/conversions suites", not the whole spec suite. The text lives in packages/spec/src/ui/component.zod.ts:5469, packages/spec/src/data/field.zod.ts:1674 and packages/spec/src/ui/view.zod.ts:3497 and :6392. git grep "18\.7\.0" at this head finds 14 lines in 10 files outside CHANGELOG.md: also packages/spec/src/data/seed.zod.ts:50 and :54, the generated content/docs/references/ui/{component,view}.mdx, content/docs/data-modeling/seed-data.mdx:147 and :175, docs/qa/platform-checklist/areas/platform-core.json:3260, and the pending .changeset/37042-skills-inline-edit-boolean.md (another DELIBERATE CORRECTION if it is touched). The dev measures which of these the move makes false and moves them with the constant; the fix cannot land ahead of it, because the pin holds them at 18 while PROTOCOL_MAJOR is 18.
  • M2 (must-fix) — packages/mcp/README.md changes (two snippets) and @objectstack/mcp ships README.md (files: ["dist","README.md","CHANGELOG.md"], private: false), but no changeset names the package. .changeset/37229-protocol-19.md names @objectstack/spec alone. feat(spec)!: PROTOCOL_VERSION 17 → 18 in an ordinary PR — regenerated spec-changes.json and upgrade guide, ^18 handshakes, pre-mode lockstep exception (#22085 Q1 → B) #22215 touched the same README and declared '@objectstack/mcp': patch. A published package without its changeset does not enter the queue. The other packages the diff touches change test files only, which do not ship, and ui/packages/i18n/scripts/ is outside that package's files[]. Fix: a patch entry for @objectstack/mcp; re-run check-changeset-no-major on the result.
  • S1 (should-fix) — the step-19 entry and the changeset promise more than --write does. 19.protocol-18-range-refused.ts says --write "rewrites the declared range at the key the handshake reads" and, under acceptanceCriteria, "Grep every manifest the project declares (objectstack.config.ts and each package manifest) … which rewrites each to '^19'"; the changeset says the same of "every package manifest in a multi-package app". Measured at this head on examples/app-multi-package with both package manifests put back to '^18': os migrate meta --from 18 --write wrote nothing and printed "The declared protocol range was left for you to change by hand … not written [helper]: manifest is composed by composeStacks(…) from all of its inputs, so no one literal is its source". On a single-manifest app (examples/app-todo) it does rewrite objectstack.config.ts:48 … '^18' → '^19'. Fix the three strings: --write rewrites a range that is one literal in the config, and reports a composed manifest for a hand edit in each package manifest. The entry text ships in spec-changes.json, the upgrade guide and the CLI's own advisory.
  • S2 (should-fix) — docs/qa/platform-checklist/areas/platform-core.json, item platform-core.protocol-18-handshake-and-stored-replay (active, P1): its title, a fixture, a step and the acceptance clause "^17 → 422 OS_PROTOCOL_INCOMPATIBLE with migrateCommand naming --from 17; ^18 admitted" are false once the runtime is protocol 19, and its step "boot a ^18 dist/objectstack.json built before a retirement" is now refused at the handshake. The Judgments table has no row for it, while the PR did correct the same kind of fact in cli.json. Either revise the item here, or give it a row and a filed follow-up card; the seat chooses.
  • N1 — body: "74 files, +210 / −95". GitHub and git diff --stat both read +206 / −95.
  • N2 — protocol-version.ts docblock: "every in-repo manifest that means the current protocol declares '^19' with it". The blank template and three skill files do not until the version pass and docs(skills): the platform and upgrade skills teach engines.protocol '^19', the major the 19.x boot handshake accepts #37298. It is published TSDoc; soften it in the rework push.
  • N3 — .changeset/37223-v19-line-opens.md still says "PROTOCOL_VERSION follows @objectstack/spec's major at version time". After this PR the constant is already 19 and the sync is a no-op. Loosely true; the note is being corrected anyway.
  • N4 — the three docs pages show '^19' while npm latest is 18.6.0, whose runtime refuses '^19'. Same as feat(spec)!: PROTOCOL_VERSION 17 → 18 in an ordinary PR — regenerated spec-changes.json and upgrade guide, ^18 handshakes, pre-mode lockstep exception (#22085 Q1 → B) #22215; the changeset says to move the range with the versions. Accepted, and named in the maintainer summary.
  • N5 — the option-B fixture carries no comment saying why its range is '>=18.0.0'. A later sweep to '^19' would close the window and red the file, so it is self-protecting.
  • N6 — packages/cli/test/migrate-meta-protocol-range.test.ts:46 still says "since the runtime implements protocol 18". Comment only.
  • N7 — Skills-docs: none in this PR — … would read more exactly as follow-up #37298.

Dogfood

Owed, and not yet on record. The title's ! and the (narrowing) arm both mark this PR. The newest trusted os-dev-report on #37229 is 7160769126: pr: null, dogfood_battery: "n/a — no PR". landDogfoodGate in scripts/pm/label-write.mjs fails closed on that. The dev's full battery (487 files passed, 3 skipped; 4128 tests passed, 68 skipped) ran on 9da4c1d4 plus an unpushed copy of the fixture fix, not on this head, and is recorded only in the PR body. e05fdf6f18 is a one-parent commit on 9da4c1d4, so the gate's first-parent walk over merges of the base cannot reach 9da4c1d4 either. The delta is one runtime test file outside packages/qa/dogfood, so the old run is good evidence; it is not the record the gate reads. Because M1, M2 and S1 move the head, run the full battery once on the final head and post #37229 an os-dev-report whose pr names #37314 and whose dogfood_battery opens with that head's sha.

Seat-side items (no dev work)

Verdict

REWORK, round 1: M1, M2, S1, and S2 if the seat chooses the in-PR fix. M1 widens the file surface to four *.zod.ts prescription strings and their generated docs, so the claim's file surface is amended in the same stroke. Then the full spec suite and the full dogfood battery on the final head. The contract-review record on this head is FAIL (record-37314.md, M1 and S1). No hand-off is written.

Landing

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e05fdf6f1895c288104746e9d54416eb3cdb6b45
Local-runs: probe — the seat ordered local reads in a throwaway worktree at this head: the two changeset guards, the option-B test with a '^18' control, the kept-site test files, the failing retired-key-removal-version.pin.test.ts, and os migrate meta --from 18 --write on examples/app-todo and examples/app-multi-package put back to '^18'; nothing was pushed and the worktree is removed
Scope: packages/spec/src/kernel/protocol-version.ts, packages/spec/src/migrations/entries/semantic/19.protocol-18-range-refused.ts, packages/spec/src/migrations/registry.ts.template + packages/runtime/src/standalone-stack-option-b-forward-conversion.test.ts, packages/metadata/src/plugin-artifact-packages-attribution.test.ts, packages/spec/src/system/translation-contributed-nav-bundle.test.ts, the five example manifests under examples/, the three connector manifests under packages/apps/, the 40 packages/cli test files, the nine packages/qa files, the two packages/lint test files, docs/qa/scenarios/builds/travel_expense.json, docs/qa/platform-checklist/areas/cli.json, packages/mcp/README.md and ui/packages/i18n/scripts/released-keys-removed.mjs (the whole diff outside the prose faces, since a narrowing is declared)

① Derived judgments

  • Face. Read off the committed tree: three paths under packages/spec/src/**, the schema face. The declared (narrowing) arm widens the scope to every path outside the prose faces.
  • Clause-②: yes (narrowing) holds. At this head the handshake refuses a range that admits 18 and not 19, which 18 admitted (measured: targets protocol ^18 (engines.protocol) but this runtime is protocol 19.0.0), and admits '^19', which 18 refused. One accept set narrows and one widens; the exported PROTOCOL_VERSION value moves. feat(spec)!: PROTOCOL_VERSION 17 → 18 in an ordinary PR — regenerated spec-changes.json and upgrade guide, ^18 handshakes, pre-mode lockstep exception (#22085 Q1 → B) #22215 (4e9fe9f) declared the same arm for 17 → 18.
  • Metadata-protocol: narrowed holds. AGENTS.md grades "a value refused" as narrowed, and narrowed outranks semantic. The claim's semantic (comment 7160363498) was written before the dev measured the refusal.
  • ADR-0087 disposition. registered protocol-18-range-refused. check-adr-0087-registration at this head: [BREAKING+clause-②-narrowing+metadata-protocol-narrowed] registered protocol-18-range-refused (new here), exit 0, in CI and here. The gate refuses not-required (no-migration-prescription) on a declared narrowed, so an entry is the only route.
  • PR body and changeset agree on both lines, read through readClause2Line and readMetadataProtocolLine.

② Semver level

  • @objectstack/spec: minor is right. A kind other than none takes at least minor on a package the diff moves. major is refused in this lane and is already carried by .changeset/37223-v19-line-opens.md (chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads #37230). CI's LEVEL AXIS line is green for this pair.
  • Protocol lockstep: PROTOCOL_VERSION major 19, @objectstack/spec@18.6.0 — the one exception, evidenced: pre mode (tag next) and a pending major for @objectstack/spec. Exit 0 here and in CI.
  • @objectstack/mcp has no entry although its shipped README.md changes. That is the seat's L1 item M1; the changeset is a prose face and outside this record.
  • DELIBERATE CORRECTION, confirmed. One note, .changeset/37223-v19-line-opens.md, one sentence.
    • Before: "The first is @object-ui/i18n's retirement of the translation keys 18.6.0 shipped and no code reads any more; a second major in the same fixed group still gives one 19.0.0."
    • After: "The first change graded major is @object-ui/i18n's retirement of the translation keys 18.6.0 shipped and no code reads any more; a second major in the same fixed group still gives one 19.0.0."
    • Judgment: the old sentence followed "Each breaking change on the line says so in its own changeset", so "the first" meant the first breaking change. This PR adds a breaking change graded minor, which makes that reading false. The new wording is true: .changeset/37223-i18n-removed-released-keys.md is the retirement and is graded major; this PR's changeset is minor. No other sentence of the note is changed. Check Changeset stays red on it by design.

③ Boundary flags

  • Q1, declaration. Answered in ①: yes (narrowing) + narrowed with a registered step-19 entry.
  • Q2, the blank template. Kept at '^18', correctly. sync-template-versions.mjs stamps '^${major}' from the scaffolder's version at the version pass, and template-consistency.test.ts (41/41 here) holds it to create-objectstack's major.
  • Q3, the floor-subject sites. Kept, correctly: the metadata-core and metadata files pass unchanged at protocol 19 (513/513 and 19/19) because their '^18' is the window's floor and no handshake against PROTOCOL_VERSION runs. The option-B file moves to '>=18.0.0', correctly: floor 18.0.0 kept, 19 admitted, 6/6, and the '^18' control reds the three boot suites.
  • Author. objectstack-fleet[bot]. The head commit e05fdf6f18 re-applies the fixture fix by a seat-dispatched dev on the maintainer's word quoted in the body; it is one file, five literals.
  • Dogfood. Marked by ! and the arm; no os-dev-report on 19.0.0 大版本:PROTOCOL_VERSION 升到 19.0.0(预发布模式进入之后) #37229 pins a battery to this head. Owed on the final head.
  • Check-runs at this head. 59 success, 13 expected skip, 0 pending. Red: Test Core (2/10) with its roll-up (④, M1), and Check Changeset, by design (②).
  • SQL push-down. No query code in the diff.
  • Out of scope, raised to the seat. Step-18 entries registered on main after the 18.6.0 tag (30 semantic files, feat(service-knowledge)!: one splitter (whole / recursive / markdown, Chinese-aware), the chunk channel and the split key; KnowledgeChunk.metadata and knowledge.chunk_overlap retired #37287 among the PRs) are not replayed by --from 18 once step 19 exists. Not this diff's defect; a card is owed.

④ Design judgment

  • packages/spec/src/kernel/protocol-version.ts, against ruling 7153441862 item 2 and its consumers.
    • Against the handshake it holds. PROTOCOL_MAJOR derives from the constant; protocol-version.test.ts is 3/3 with the lockstep exception evidenced by pre mode and the pending major.
    • M1 (must-fix) — against its second consumer it does not. packages/spec/src/shared/retired-key-removal-version.pin.test.ts derives the release that removes a key stamped retiredAfter 18.6.0 from PROTOCOL_MAJOR. At 19 it fails three cases at this head (object-grid-single-click-edit-removed, field-inline-edit-boolean-removed, view-column-state-removed; Tests 3 failed | 62 passed (65) here, and Test Core (2/10) is failure in CI, green on main fbb62e1cca): "derives @objectstack/spec 19, but the prescription names 18 — … was removed in @objectstack/spec 18.7.0". Those prescriptions are published refusal and describe text in packages/spec/src/ui/component.zod.ts, packages/spec/src/data/field.zod.ts and packages/spec/src/ui/view.zod.ts. With this constant they name a release the v19 line never cuts, and the diff leaves them. They move with the constant, in this PR.
    • Nit — the docblock's last clause overstates repo state: the blank template and three skill files do not yet declare '^19'.
  • packages/spec/src/migrations/registry.ts.template, against its consumers (gen:migration-registry, os migrate meta). Holds. step19 has toMajor: 19, empty conversionIds, the generated marker pair semantic:19, and a 19: step19 row. CI's prepare step generated the registry from it, and the CLI at this head prints Chain: protocol 18 → 19.
  • packages/spec/src/migrations/entries/semantic/19.protocol-18-range-refused.ts, against the code it describes.
    • surface and reason hold: resolveDeclaredRange reads engines.protocol, else engines.platform, else engine.objectstack; assertProtocolCompat runs in the app plugin, the package install and commit doors and the marketplace local install; the refusal names the range, the runtime protocol and objectstack migrate meta --from 18.
    • S1 (should-fix) — replacement and acceptanceCriteria say --from 18 --write rewrites the declared range, and "rewrites each" of "objectstack.config.ts and each package manifest". Measured at this head on examples/app-multi-package with both package manifests at '^18': nothing is written, and the CLI prints "The declared protocol range was left for you to change by hand … not written [helper]: manifest is composed by composeStacks(…) from all of its inputs, so no one literal is its source". On examples/app-todo the rewrite does happen (objectstack.config.ts:48 manifest.engines.protocol: '^18' → '^19'). The entry names the multi-package case and then prescribes a command that leaves it undone. This text ships in spec-changes.json, the upgrade guide and the CLI advisory. The changeset repeats the claim.
  • Implementing files. The moved fixtures agree with the contract: each stands for an app on the current protocol and none asserts on the range. The two module-top imports are what check:test-source-alias prescribes for an edited test. released-keys-removed.mjs (carried N3 of chore(release)!: enter Changesets pre mode (next) so 19.0.0 opens; retire the 18.6.0 i18n keys no code reads #37230) refuses an unknown argument with exit 2 and peels the tag with ^{commit}; it is outside @object-ui/i18n's files[].
  • The narrowing against the published spec. It makes the spec's own refusal real rather than taking a declared capability away: ADR-0087 D1 says a consumer pinned to ^N is refused, with a diagnostic, when the runtime crosses into N+1. Only installs of a 19.0.0-next.N prerelease meet it.
  • Outside the contract faces: docs/qa/platform-checklist/areas/platform-core.json still asserts "^18 admitted". It is the seat's L1 item S2 and does not weigh on this verdict.

Implemented-by: session_01QSeKYnLptCbfzwtkTrDG3j
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: FAIL

…tated, mcp gets its changeset

With PROTOCOL_VERSION at 19 the release-name pin derives @objectstack/spec 19
for every retirement stamped after 18.6.0, so the three joined prescriptions
(object-grid singleClickEdit, field inlineEdit boolean, view columnState) and
the two seed-mode prescriptions, none of them in the published 18.6.0, name
19.0.0 instead of 18.7.0, a release the v19 line never cuts. Their text pins,
the seed-data guide, the seed-mode checklist item and the pending skills
changeset follow.

The step-19 entry and the changeset say what `os migrate meta --from 18
--write` does: it rewrites a root defineStack manifest's range and lists a
composeStacks-composed one for a hand edit in each package manifest.

The protocol checklist item is revised to the protocol-19 truth, the
changeset names @objectstack/mcp (its README ships), and four comment nits.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
The one-word comment edit pulled the file under check:test-source-alias's
edited-file half, which then owes thirteen module-top imports unrelated to
this change. The sentence reads true at protocol 19 as written.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>
…llow the protocol move

The metadata-protocol seed refusal pin reads the 19.0.0 prescription the
seed modes now carry. The travel_expense build's provenance records the
sha256 of the build as it now stands, with an amended entry naming the one
edit (engines.protocol '^18' to '^19') and the sha256 it replaced.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-authored-by: Claude <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:data protocol:system protocol:ui size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

19.0.0 大版本:PROTOCOL_VERSION 升到 19.0.0(预发布模式进入之后)

2 participants